package com.yellow.analyticsservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("delivery_times")
public class DeliveryTime {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("order_id")
    private Integer orderId;

    @TableField("pickup_time")
    private LocalDateTime pickupTime;

    @TableField("delivery_time")
    private LocalDateTime deliveryTime;

    @TableField("time_taken")
    private Integer timeTaken;
}
